package com.wgchao.authodemo.application.mapstruct.mapper.vtod;

import com.wgchao.authodemo.application.mapstruct.DTOMapper;
import com.wgchao.authodemo.application.mapstruct.dto.AgencyDTO;
import com.wgchao.authodemo.domian.entity.base.AgencyDO;
import com.wgchao.authodemo.userInterface.vo.agency.AgencySaveVO;
import org.mapstruct.Mapper;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

/**
 * @作者  wgchao
 * @时间 2019-12-10 
 * @用途  
 */
@Component
public class AgencySaveVDMapper implements CommonVDMapper<AgencySaveVO, AgencyDTO> {


    @Override
    public AgencyDTO toDTO(AgencySaveVO agencySaveVO) {
        AgencyDTO agencyDTO = new AgencyDTO();
        BeanUtils.copyProperties(agencySaveVO, agencyDTO);
        return agencyDTO;
    }

    @Override
    public AgencySaveVO toVO(AgencyDTO agencyDTO) {
        return null;
    }
}
